#pragma once

#include "other.h"
#include "afxwin.h"
#include "Resource.h"
// CodeeditDlg dialog

class CodeeditDlg : public CDialog
{
	DECLARE_DYNAMIC(CodeeditDlg)

public:
	CodeeditDlg(CWnd* pParent = NULL);   // standard constructor
	virtual ~CodeeditDlg();

// Dialog Data
	enum { IDD = IDD_CODEEDIT_DLG };

protected:
	virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV support

	virtual BOOL OnInitDialog();

	DECLARE_MESSAGE_MAP()

public:
	bool isEdit;

	OpC * opc;
	OpC * opc_bak;
	CComboBox cbbIns;
	CEdit CodeValue;
	CEdit editA;
	//bool lockA;
	CEdit editB;
	//bool lockB;
	CEdit editC;
	//bool lockC;
	afx_msg void OnBnClickedButton2();
	CButton btnUpdate;
	bool isCode;
	CButton btnCodeMathod;
	CButton btnInstructionMathod;
	afx_msg void OnEnChangeEdit1();
	afx_msg void OnCbnSelchangeCombo1();
	afx_msg void OnEnChangeEdit2();
	afx_msg void OnEnChangeEdit3();
	afx_msg void OnEnChangeEdit4();
	afx_msg void OnBnClickedButton1();
	afx_msg void OnBnClickedRadio2();
	afx_msg void OnBnClickedRadio1();
};
